package com.rosh.customer.controller;

import com.rosh.api.student.StudentService;
import com.rosh.rpc.core.annotation.RoshRpcRemote;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: rosh
 * @Date: 2022/6/13 22:56
 */
@RestController
@RequestMapping("/student")
public class StudentController {


    @RoshRpcRemote
    private StudentService studentService;


    @GetMapping("/getStudent")
    public String getStudent(Integer id) {
        return studentService.getStudent(id);
    }


}
